<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>添加试卷</title>
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
    <script src="/bootstrap/js/jquery.min.js"></script>
    <script src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body >
<div class="container">
    <div class="panel panel-success">
        <div class="panel-heading panel-title text-center">
            <h1>百度在线考试平台--添加试卷</h1>
        </div>
        <div class="panel-body" align="center">
            <form action="/papers/addPaper" method="post" modelAttribute="paper">
                试卷名称：<input type="text" name="title" value="${paper.title}"><br /><br />
                单选题数量：<input type="number" name="radioCount" value="${paper.radioCount}">
                单选题分数：<input type="number" name="radioScore" value="${paper.radioScore}"><br /><br />
                多选题数量：<input type="number" name="checkCount" value="${paper.checkCount}">
                多选题分数：<input type="number" name="checkScore" value="${paper.checkScore}"><br /><br />
                判断题数量：<input type="number" name="judgeCount" value="${paper.judgeCount}">
                判断题分数：<input type="number" name="judgeScore" value="${paper.judgeScore}"><br /><br />
                题库：
                <c:forEach var="repo" items="${repoList}">
                    <input type="checkbox" name="repoList" value="${repo.id}">
                    ${repo.name}
                </c:forEach><br>
                <input type="submit" value="保存">
            </form>
        </div>
        <div class="panel-footer text-right">
            百度在线考试平台
        </div>
    </div>
</div>
</body>
</html>
